<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head th:replace="common::head"></head>
    <body>
        <h2>登&nbsp;录</h2>
        <p th:if="${loginError}" class="error">用户或密码错误</p>
        <form th:action="@{/login.html}" method="post">
            <label for="username">用户</label>:
            <input type="text" id="username" name="username" autofocus="autofocus" /> <br />
            <label for="password">密码</label>:
            <input type="password" id="password" name="password" /> <br />
            <input type="submit" value="登录" style="width: 220px;" />
        </form>
        <p><a href="../index.html" th:href="@{/index.html}">返回主页</a></p>
    </body>
</html>
